<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>编辑专家服务</title>
    <%@ include file="../../common/meta.jsp" %>
    <%@ include file="../../common/common-body.jsp" %>
    <link href="${ctx}/css/page/common-win.css?t=${now}" rel="stylesheet">
    <script src="${ctx}/js/ueditor/ueditor.config.js?t=${now}"></script>
    <script src="${ctx}/js/ueditor/ueditor.all.js?t=20181010"></script>
    <style>
        #_btnDiv {
            height: 34px;
            margin-bottom: 0px;
        }

        .right-btn {
            float: right;
            margin-right: 5px;
            height: 25px;
            padding-top: 2px !important;
            margin-top: -7px;
        }

        .div-style {
            border: 1px solid #dddddd;
            height: 500px;
            padding: 10px;
        }

        ._packageDiv {
            height: 500px;
            overflow-y: scroll;
            overflow-x: hidden;
        }
    </style>
    <script>
        var selectedAppRow = ${selectedAppRow};
        var dotJson = ${dto};
        var appid = '${appid}';
        var searchStr = '${searchStr}';
        var searchStr2 = '${searchStr2}';
    </script>
</head>
<body class="gray-bg">
<div id="vue">
    <div class="myContent">
        <div class="tabs-container">
            <div class="tab-content">
                    <form class="form-horizontal m-t" id="editBizAppform">
                <div id="tab-1" class="tab-pane active">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="ibox float-e-margins myIbox">
                                <div class="ibox-title">
                                    <h5>编辑服务项</h5>
                                </div>
                                <div class="ibox-content">
                                    <h5 class="page-header page-header-new"><i class="fa fa-file-text"></i>&nbsp;&nbsp;基本信息
                                    </h5>
                                        <div class="row form-group">
                                            <label class="col-sm-2 control-label"><span
                                                    style="color: red">*</span>状态：</label>
                                            <div class="col-sm-4">
                                                <select id="status" name="status" class="form-control"
                                                        v-model="editBizApp.status">
                                                    <c:if test="${not empty status}">
                                                        <c:forEach items="${status}" var="item">
                                                            <option value="${item.key}">${item.value}</option>
                                                        </c:forEach>
                                                    </c:if>
                                                </select>
                                            </div>
                                            <label class="col-sm-2 control-label">服务商名称：</label>
                                            <div class="col-sm-4">
                                                {{addBizApp.bizName}}
                                            </div>
                                        </div>

                                        <div class="row form-group">
                                            <label class="col-sm-2 control-label">服务类型：</label>
                                            <div class="col-sm-4">
                                                {{editBizApp.bizName}}
                                            </div>
                                            <label class="col-sm-2 control-label">机构名称：</label>
                                            <div class="col-sm-4">
                                                {{addBizApp.orgName}}
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <label class="col-sm-2 control-label">专家名称：</label>
                                            <div class="col-sm-4">
                                                {{addBizApp.docName}}
                                            </div>
                                            <label class="col-sm-2 control-label">服务商：</label>
                                            <div class="col-sm-4">
                                                {{addBizApp.isvName}}
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <label class="col-sm-2 control-label">服务有效期：</label>
                                            <div class="col-sm-4">
                                                <input type="text" id="validDay" name="validDay"
                                                       placeholder="签约或购买后提供服务有效期" class="form-control"
                                                       <%--onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"--%>
                                                       v-model="editBizApp.validDay">
                                            </div>
                                            <label class="col-sm-2 control-label">
                                                <div style="float: left;">天</div>
                                                排序：</label>
                                            <div class="col-sm-4">
                                                <input type="text" id="sortNum" name="sortNum" class="form-control"
                                                       onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"
                                                       v-model="editBizApp.sortNum">
                                            </div>
                                            <%--<label class="col-sm-2 control-label">已回答次数</label>--%>
                                            <%--<div class="col-sm-2">--%>
                                                <%--<input type="text" id="replyTime" name="replyTime" class="form-control"--%>
                                                       <%--onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"--%>
                                                       <%--v-model="editBizApp.replyTime">--%>
                                            <%--</div>--%>
                                        </div>
                                        <%--<div class="row form-group">--%>
                                            <%--<label class="col-sm-2 control-label"><span style="color: red;">*</span>溢价：</label>--%>
                                            <%--<div class="col-sm-2">--%>
                                                <%--<input type="text" id="premium" name="premium" placeholder=""--%>
                                                       <%--class="form-control"--%>
                                                       <%--onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D\./g,'')}"--%>
                                                       <%--v-model="editBizApp.premium">--%>
                                            <%--</div>--%>
                                            <%--<label class="col-sm-2 control-label"><div style="float: left;">元</div>原价：</label>--%>
                                            <%--<div class="col-sm-2">--%>
                                                <%--<input type="text" id="originalPrice" name="originalPrice"--%>
                                                       <%--class="form-control"--%>
                                                       <%--onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D\./g,'')}"--%>
                                                       <%--v-model="editBizApp.originalPrice">--%>
                                            <%--</div>--%>
                                            <%--<label class="col-sm-2 control-label"><div style="float: left;">元</div></label>--%>
                                        <%--</div>--%>
                                        <%--<div class="row form-group">--%>
                                            <%--<label class="col-sm-2 control-label"><span style="color: red;"></span>折扣价：</label>--%>
                                            <%--<div class="col-sm-2">--%>
                                                <%--<input type="text" id="discountPrice" name="discountPrice"--%>
                                                       <%--placeholder="" class="form-control"--%>
                                                       <%--onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^0-9]/g,'')}else{this.value=this.value.replace(/\D\./g,'')}"--%>
                                                       <%--v-model="editBizApp.discountPrice">--%>
                                            <%--</div>--%>
                                            <%--<label class="col-sm-2 control-label"><div style="float: left;">元</div>折扣时间：</label>--%>
                                            <%--<div class="col-sm-3">--%>
                                                <%--<input type="text" id="discountStartTime" name="discountStartTime"--%>
                                                       <%--class="form-control layer-date" placeholder="开始时间" readonly="readonly"--%>
                                                       <%--v-model="editBizApp.discountStartTime">--%>
                                            <%--</div>--%>
                                            <%--<div class="col-sm-3">--%>
                                                <%--<input type="text" id="discountEndTime" name="discountEndTime"--%>
                                                       <%--class="form-control layer-date" placeholder="结束时间" readonly="readonly"--%>
                                                       <%--v-model="editBizApp.discountEndTime">--%>
                                            <%--</div>--%>
                                        <%--</div>--%>
                                    <h4><i class="fa fa-table"></i> 扩展信息</h4>
                                    <hr>
                                    <div class="row form-group">
                                        <label class="col-sm-2 control-label">服务提供方式：</label>
                                        <div class="col-sm-4">
                                            <select id="appType" name="appType" v-model="editBizApp.appType"
                                                    class="form-control" onchange="onchangeh5(this)">
                                                <option value="">--请选择--</option>
                                                <c:if test="${not empty appType}">
                                                    <c:forEach items="${appType}" var="item">
                                                        <option value="${item.key}">${item.value}</option>
                                                    </c:forEach>
                                                </c:if>
                                            </select>
                                        </div>
                                        <label class="col-sm-2 control-label">是否有中间页：</label>
                                        <div class="col-sm-4">
                                            <select id="hasMidPage" name="hasMidPage" v-model="editBizApp.hasMidPage"
                                                    class="form-control">
                                                <option value="">--请选择--</option>
                                                <c:if test="${not empty YES_OR_NOT}">
                                                    <c:forEach items="${YES_OR_NOT}" var="item">
                                                        <option value="${item.key}">${item.value}</option>
                                                    </c:forEach>
                                                </c:if>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <label class="col-sm-2 control-label">
                                            <span v-if="editBizApp.appType =='html'" id="h5"
                                                  style="color: red;">*</span>
                                            <span v-else id="h5" hidden="hidden"
                                                  style="color: red;">*</span>h5地址：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="appLinkUrl" name="appLinkUrl"
                                                   v-model="editBizApp.appLinkUrl">
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <label class="col-sm-2 control-label">服务说明：</label>
                                        <div class="col-sm-10">
                                            <script id="serviceContent" type="text/html"></script>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <label class="col-sm-2 control-label">备注：</label>
                                        <div class="col-sm-10">
                                            <textarea id="remark" name="remark" cols="30" rows="10" class="form-control"
                                                      v-model="editBizApp.remark"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                    </form>
            </div>
        </div>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <div class="form-group" id="_btnDiv">
                    <div class="col-sm-4 col-sm-offset-5">
                        <c:if test="${editType!='info'}">
                            <input type="button" class="btn btn-primary" onclick="doEditBizApp()" value="保存">
                        </c:if>
                        <input type="button" class="btn btn-white" onclick="doBack()" value="返回">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctx}/js/app/win/editChildDocBizAppMgr.js?t=${now}"></script>
</body>
</html>

